﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF_基础1.Models
{
    /// <summary>
    /// 鸽子
    /// </summary>
    public class Pigeon:BaseEntity
    {
        /// <summary>
        /// 鸽子名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 羽毛颜色
        /// </summary>
        public string FeatherColor { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// 外键Id
        /// </summary>

        public int PigeonOwnerId { get; set; }
        /// <summary>
        /// 所属鸽主
        /// </summary>
        public PigeonOwner PigeonOwner { get; set; } = null!;
    }
}
